iommu: split generic code
authorJulien Grall <julien.grall@linaro.org>
Wed, 14 May 2014 08:50:22 +0000 (10:50 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 14 May 2014 08:50:22 +0000 (10:50 +0200)
commit5979e0c92559333287122ff072aa6ad247bd088a
tree1c4e4f912116456a5c3e06c6c1631ca2450864bb
parentfc49666e811db269539bc9557608504b5f332bfb
iommu: split generic code

The generic IOMMU framework code (xen/drivers/passthrough/iommu.c) contains
functions specific to x86 and PCI.

Split the framework in 3 distincts files:
    - iommu.c: contains generic functions shared between x86 and ARM
               (when it will be supported)
    - pci.c: contains specific functions for PCI passthrough
    - x86/iommu.c: contains specific functions for x86

io.c contains x86 HVM specific code. Only compile for x86.

This patch is mostly code movement in new files.

Signed-off-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/drivers/passthrough/Makefile
xen/drivers/passthrough/iommu.c
xen/drivers/passthrough/pci.c
xen/drivers/passthrough/x86/Makefile
xen/drivers/passthrough/x86/iommu.c [new file with mode: 0644]
xen/include/asm-x86/iommu.h [new file with mode: 0644]
xen/include/xen/hvm/iommu.h
xen/include/xen/iommu.h